Finding the try for an except or finally [migrated]
Posted
by
?s?
on Programmers
See other posts from Programmers
or by ?s?
Published on 2013-06-25T02:24:50Z
Indexed on
2013/06/25
4:28 UTC
Read the original article
Hit count: 225
I'm dealing with some code that has fantastically long methods (10k lines!) and some odd use of try-finally and try-except blocks. Some of the latter are long by themselves, and don't always have the try at the start of the method.
Obviously I'm trying to refactor the code, but in the meantime just being able to fix a couple of common pathologies would be much easier if I could jump to the start of a block and see what is happening there. When it's 20+ pages away finding it even with the CNPack rainbows is just tedious.
I'm using D2010 and have GExperts (with DelForExp), CNPack and DDevExtensions installed, but I can't find anything that lets me jump from the try to the finally or back. Am I missing something? Is there another add-in that I can use that will get me this?
© Programmers or respective owner